<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
   <tr>
      <td>序号</td>
      <td>姓名</td>
      <td> 性别</td>
      <td>年级</td>
      <td>专业</td>
      <td>操作</td>
   </tr>
    {% for s in stuinfo  %}

    {% endfor %}

   <tr>
      <td>{{ s.id }}</td>
      <td>{{ s.stu_name }}</td>
      <td>{{ s.get_sex_display }}</td>
      <td>{{ s.stu_class }}/td>
      <td>{{ s.specialized }}</td>
      <td>
         <a href="{% url 'stu:getstu' s.id %}">查看</a>
         <a href="{% url 'stu:delstu' s.id %}">删除</a>
      </td>
   </tr>



   <th>
       {% if stuinfo.has_previous %}
            <a href="{% url 'stu:stulist' %}?page={{ stuinfo.number|ad:-1 }}">上一页</a>
       <a href="#">2</a><a href="#">3</a>
   </th>
</table>
</body>
</html>